package com.unisedu.hr.dao;

import com.unisedu.hr.basic.IBaseDao;
import com.unisedu.hr.basic.user.BasicPersonInfo;
import com.unisedu.hr.basic.user.EmployeeInfo;
import com.unisedu.hr.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface EmployeeDao extends IBaseDao{

    Employee getEmployeeInfo(@Param(value = "id") Integer id);

    void insertPersonInfo(BasicPersonInfo personInfo);

    void insertEmployeeInfo(EmployeeInfo employeeInfo);

    void updatePersonInfo(BasicPersonInfo personInfo);

    void updateEmployeeInfo(EmployeeInfo employeeInfo);

    void updateEmployeePhoto(EmployeeInfo employeeInfo);
}
